package com.dt.common.validation.annotation;

public abstract class ValidationPatterns {

	private static final String ATOM = "[^\\x00-\\x1F^\\(^\\)^\\<^\\>^\\@^\\,^\\;^\\:^\\\\^\\\"^\\.^\\[^\\]^\\s]";
	
	public static final String DOMAIN = "(" + ATOM + "+(\\." + ATOM + "+)*";
	public static final String IP_DOMAIN = "\\[[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\]";
	
	public static final String EMAIL = "^" + ATOM + "+(\\." + ATOM + "+)*@" + DOMAIN + "|" + IP_DOMAIN + ")$";

	public static final String CN_MOBILE_PHONE = "^(?:\\+86[ ]*)*1\\d{10}$";

}
